import API from "@/utils/request";

/**
 * 配送
 * @param {Object} data 参数
 */

// 商家配送
export const OFFORONDISTRIBUTIONCONFIG = data => {
  return API("sp/v1.Distribution/offOrOnDistributionConfig", data);
};
export const SHOWDISTRIBUTIONCONFIG = data => {
  return API("sp/v1.Distribution/showDistributionConfig", data);
};
export const SETDEFAULTTEMPLETE = data => {
  return API("sp/v1.Distribution/setDefaultTemplete", data);
};
export const DISTRIBUTIONTEMPLETECOPY = data => {
  return API("sp/v1.Distribution/distributionTempleteCopy", data);
};
export const DISTRIBUTIONTEMPLETELIST = data => {
  return API("sp/v1.Distribution/distributionTempleteList", data);
};
export const SETDISTRIBUTIONTEMPLETE = data => {
  return API("sp/v1.Distribution/setDistributionTemplete", data);
};

export const MONI = data => {
  return API("spwx/v1.Distribution/moni", data);
};

export const STORESETTING = data => {
  return API("sp/v1.Distribution/storeSetting", data);
};

// export const DELCURRENTTEMPLETE = data => {
//   return API('sp/v1.Distribution/delCurrentTemplete', data)
// }
export const DELDISTRIBUTIONTEMPLETE = data => {
  return API("sp/v1.Distribution/delDistributionTemplete", data);
};
export const DELDISTRIBUTIONPLAN = data => {
  return API("sp/v1.Distribution/delDistributionPlan", data);
};

// 同城配送
export const SAMECITYSETTING = data => {
  return API("sp/v1.Distribution/sameCitySetting", data);
};
export const THIRDLOGISTICS = data => {
  return API("sp/v1.Distribution/thirdLogistics", data);
};

// 到店自提
export const YOUSELFPOINTLIST = data => {
  return API("sp/v1.Distribution/youselfPointList", data);
};
export const SETYOURSELFPOINT = data => {
  return API("sp/v1.Distribution/setYourselfPoint", data);
};
export const EDITSTATUS = data => {
  return API("sp/v1.Distribution/editStatus", data);
};
export const DELYOURSELFPOINT = data => {
  return API("sp/v1.Distribution/delYourselfPoint", data);
};
export const YOURSELFSETTING = data => {
  return API("sp/v1.Distribution/yourselfSetting", data);
};

// 地址库
export const SETADDRESSDEPOT = data => {
  return API("sp/v1.Distribution/setAddressDepot", data);
};
export const ADDRESSDEPOTLIST = data => {
  return API("sp/v1.Distribution/addressDepotList", data);
};
export const SETDEFAULTSR = data => {
  return API("sp/v1.Distribution/setDefaultSR", data);
};
export const DELADDRESSDEPOT = data => {
  return API("sp/v1.Distribution/delAddressDepot", data);
};
